package com.framework.network.callbacks


/**
 * @ClassName: OnNetworkResultListener
 * @Description:
 * @Author: you
 */
abstract class OnNetworkResultListener {
    //断网
    open fun onNetworkBreak(e: Exception) {}

    //超时错误
    open fun onSocketTimeout(e: Exception) {}

    //数据解析错误
    open fun onJsonSyntax(e: Exception) {}

    //接口请求,服务端返回错误
    open fun onServiceCallBackError(e: Exception) {}

    //其他错误
    open fun onThrowableError(e: Throwable) {}
}